package FactoryMethod.exp.framework;

/**
 * @author zsh
 * @Description
 * @create 2022-05-11 20:23
 */
public abstract class Factory {
    public final Product create(String owner){
        Product product = createProduct(owner);
        registerProduct(product);
        return product;
    }

    protected abstract void registerProduct(Product product);
    protected abstract Product createProduct(String owner);
}
